/*CSSToolkit - a Java parser and object model for CSS
Copyright (C) 2009. Goran Jovic

This file is part of CSSToolkit.

CSSToolkit is free software: you can redistribute it and/or modify
it under the terms of the Lesser GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.

CSSToolkit is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
GNU Lesser General Public License for more details.

You should have received a copy of the Lesser GNU General Public License
along with CSSToolkit.  If not, see <http://www.gnu.org/licenses/>.*/

package org.goranjovic.css.dom;

public class Declaration {
	
	private Property property;
	
	private Value value;
	

	public Declaration() {
	}
	
	public Declaration(String propertyString, String valueString) {
		property = new Property(propertyString);
		value = new Value(valueString);
	}

	public Property getProperty() {
		return property;
	}

	public void setProperty(Property property) {
		this.property = property;
	}

	public Value getValue() {
		return value;
	}

	public void setValue(Value value) {
		this.value = value;
	}
	
	@Override
	public String toString() {
		return getProperty().toString()+": "+getValue().toString();
	}
	

}
